home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-23 | 2.2 KB | 50 lines | [TEXT/ttxt] |
- 12 Getting Info
- In the previous sections you have already encountered
- several commands which give you information on your system
- and MacDOS. DATE, PROMPT, SHOW, TIME, and VOL all fall into
- this category. This section completes the list of such
- commands.
-
- MacDOS Version
- You can find out what version of MacDOS you are running by
- executing the command VER. This is part of the information
- that you get when the Finder displays the Info box of the
- MacDOS application file.
-
- Additionally, VER also displays your MacDOS licence number.
-
- On-line Help
- When you type the command HELP with a command name as
- argument, MacDOS displays a brief summary of the command,
- its parameters, and its switches. You obtain the same
- result if you execute any command with the switch /? .
-
- HELP without parameters displays one line of description
- for each command, while HELP followed by a question mark
- lists the command names.
-
- Keeping Track of MacDOS
- You can direct MacDOS to keep a log of the commands it
- executes. You only need to type: log logFileSpec . MacDOS
- then stores each command that you execute into a new line
- of the log file. This continues until you execute the
- command LOG without parameters.
-
- Such a file is very useful to trace the execution of
- complex batch programs, especially during the debugging
- phase.
-
- The logging mechanism can also be used to generate batch
- files:
- • LOG a series of commands;
- • edit the log file to remove unnecessary lines and to
- update some commands;
- • change the creator from 'ttxt' to 'mDOS'. (you don't
- need to do this if the system variable CREATOR is set to
- 'mDOS').
- When used in this way, the LOG command operates like the
- macro collection mechanism common to many applications.
-
- If you add the switch /O , LOG stores into the log file the
- output of the commands as well as the commands themselves.
-